package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.BusiDeptWorkhour;
import com.ruoyi.system.domain.BusiUserWorkhour;
import com.ruoyi.system.domain.WorkHourAndPerson;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BusiUserWorkhourMapper {
    int deleteByPrimaryKey(String id);

    int insert(BusiUserWorkhour record);

    int insertSelective(BusiUserWorkhour record);

    List<BusiUserWorkhour> selectByName(String name);

    BusiUserWorkhour selectById(String id);

    int updateByPrimaryKeySelective(BusiUserWorkhour record);

    int updateByPrimaryKey(BusiUserWorkhour record);

    List<WorkHourAndPerson> showAll();

    List<WorkHourAndPerson> find(@Param("targetMonth")String targetMonth, @Param("personGroup")String personGroup, @Param("personName") String personName);

    List<BusiDeptWorkhour> getDeptWorkHour();

    BusiUserWorkhour findByNameMonth(@Param("name") String name,@Param("month") String month);
}